﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

/// <summary>
/// Summary description for DongHoKhachHangEntities
/// </summary>
namespace BTGISWASECO.BusinessEntities
{
    public class DongHoKhachHangEntities
    {
        #region khai bao thuoc tinh
        private int _OBJECTID;
        private string _IDMaDongHo;
        private string _TieuChuan;
        private int _NamSanXuat;
        private string _NhaSanXuat;
        public DongHoKhachHangEntities()
        {

        }

        public int OBJECTID
        {
            get { return _OBJECTID; }
            set { _OBJECTID = value; }
        }

        public string IDMaDongHo
        {
            get { return _IDMaDongHo; }
            set { _IDMaDongHo = value; }
        }

        public string TieuChuan
        {
            get { return _TieuChuan; }
            set { _TieuChuan = value; }
        }

        public int NamSanXuat
        {
            get { return _NamSanXuat; }
            set { _NamSanXuat = value; }
        }

        public string NhaSanXuat
        {
            get { return _NhaSanXuat; }
            set { _NhaSanXuat = value; }
        }

        # endregion khai bao

        #region phuong thuc

        public DongHoKhachHangEntities(string IDMaDongHo, string TieuChuan, int NamSanXuat, string NhaSanXuat)
        {
            this._IDMaDongHo = IDMaDongHo;
            this._TieuChuan = TieuChuan;
            this._NamSanXuat = NamSanXuat;
            this._NhaSanXuat = NhaSanXuat;
        }
        public DongHoKhachHangEntities(int OBJECTID, string IDMaDongHo, string TieuChuan, int NamSanXuat, string NhaSanXuat)
        {
            this._OBJECTID = OBJECTID;
            this._IDMaDongHo = IDMaDongHo;
            this._TieuChuan = TieuChuan;
            this._NamSanXuat = NamSanXuat;
            this._NhaSanXuat = NhaSanXuat;
        }

        public DongHoKhachHangEntities(DataRow row)
        {
            this._OBJECTID = Convert.ToInt32(row[0]);
            this._IDMaDongHo = row[1].ToString();
            this._TieuChuan = row["TieuChuan"].ToString();
            this._NamSanXuat = Convert.ToInt32(row[3]);
            this._NhaSanXuat = row[4].ToString();
        }
        #endregion phuong thuc
    }
}